package cn.lcj.org.mapper;

import cn.lcj.org.domain.Shop;
import cn.lcj.basic.mapper.BaseMapper;
import cn.lcj.org.dto.ShopDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lcj
 * @since 2023-02-04
 */
public interface ShopMapper extends BaseMapper<Shop> {

    Shop findByNameAndAdress();
/*多参数操作1.@Param，2.#{}3.map*/
    void updateState(@Param("state") Integer state,@Param("shopId") Long ShopId);

    List<ShopDto> echarts();
}
